package com.taxi.driver.api;

/**
 * 功能描述：
 */
public final class ApiConfig {

    private static String HOST = ""; //服务器地址
    public static String APP_URL_DOMAIN = HOST + "";

    //   ------ API 分类 ------   //
    private static String DRIVER_API = ""; //用户相关
    private static String ORDER_API = ""; //出租车、专车订单
    private static String CONFIG_URL = ""; //配置文件下载地址

    private ApiConfig() {

    }

    public static void setHost(String host) {
        HOST = host;
        APP_URL_DOMAIN = HOST + "";
        DRIVER_API = APP_URL_DOMAIN + "/api/v1/driver/";
        ORDER_API = APP_URL_DOMAIN + "/api/v1/driver/token/";
        CONFIG_URL = APP_URL_DOMAIN + "/api/v1/common/";
    }

    public static String getDriverApi() {
        return DRIVER_API;
    }

    public static String getOrderApi() {
        return ORDER_API;
    }

    public static String getConfigUrl() {
        return CONFIG_URL;
    }
}
